import request from '@/utils/request'

// 查询人员排放列表
export function listPersionEmission(query) {
  return request({
    url: '/business/persionEmission/list',
    method: 'get',
    params: query
  })
}

// 查询人员排放详细
export function getPersionEmission(personnelId) {
  return request({
    url: '/business/persionEmission/' + personnelId,
    method: 'get'
  })
}

// 新增人员排放
export function addPersionEmission(data) {
  return request({
    headers: {
      repeatSubmit: true,
      interval: 2000
    },
    url: '/business/persionEmission',
    method: 'post',
    data: data
  })
}

// 修改人员排放
export function updatePersionEmission(personnelId, data) {
  return request({
    headers: {
      repeatSubmit: true,
      interval: 2000
    },
    url: '/business/persionEmission/' + personnelId,
    method: 'put',
    data: data
  })
}

// 删除人员排放
export function delPersionEmission(personnelId) {
  return request({
    url: '/business/persionEmission/' + personnelId,
    method: 'delete'
  })
}
